﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp3
{
    class Batmobile : Car, IFly, IRun
    {
        private string name;

        public string Name { get; set; }
        public Batmobile(string name) : base(name)
        {
            this.name = name;
        }

        public void fly()
        {
            Console.WriteLine("我是{0},我会飞", this.name);
        }

        public void run()
        {
            Console.WriteLine("我是{0},我会跑", this.name);
        }
    }
}
